const arr = new Uint16Array ( 2 );

arr[0] = 5000;
arr[1] = 4000;

// Copies the contents of `arr`.
const buf1 = Buffer.from ( arr );
// Shares memory with `arr`.
const buf2 = Buffer.from ( arr.buffer );

const arr_buffer = arr.buffer;

console.log ( buf1 );
// Prints: <Buffer 88 a0>
console.log ( buf2 );
// Prints: <Buffer 88 13 a0 0f>
debugger;
arr[1] = 6000;

console.log ( buf1 );
// Prints: <Buffer 88 a0>
console.log ( buf2 );
// Prints: <Buffer 88 13 70 17>

debugger;